<?php

namespace app\common\model;

use think\Model;

class Material extends Model
{
    // 表名
    protected $name = 'material';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;

    public function supplier()
    {
        return $this->belongsTo('Supplier', 'supplier_id', 'id');
    }
}
